package com.hy.mvc.biz.service.mapper;

import com.hy.mvc.domain.dataobject.base.BaseDO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

/**
 * Created by wb-wjk303770 on 2017/7/12.
 */
public interface IMapper<T extends BaseDO, E> {

    int countByExample(E var1);

    int deleteByExample(E var1);

    int deleteByPrimaryKey(Long var1);

    int insert(T var1);

    int insertSelective(T var1);

    List<T> selectByExampleWithRowbounds(E var1, RowBounds var2);

    List<T> selectByExample(E var1);

    T selectByPrimaryKey(Long var1);

    int updateByExampleSelective(@Param("record") T var1, @Param("example") E var2);

    int updateByExample(@Param("record") T var1, @Param("example") E var2);

    int updateByPrimaryKeySelective(T var1);

    int updateByPrimaryKey(T var1);
}